from building import *
import os

cwd = GetCurrentDir()
src = ['main.c']
src +=['usb_audio_display_composite.c']
src +=['drv_usb_display.c']
# src +=['drv_usb_display_softjpg.c']
src +=['drv_uac_sound.c']
src +=['drv_gt911.c']
src +=['drv_hid_touch_gt911.c']

CPPPATH = [cwd]

group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

list = os.listdir(cwd)
for item in list:
    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
        group = group + SConscript(os.path.join(item, 'SConscript'))

Return('group')
